package springbootdubbo.service;

import org.apache.dubbo.config.annotation.Service;
import rpc.Dubborpc;

@Service
public class HelloServiceImpl implements Dubborpc {

    @Override
    public String sayHello(String name) throws InterruptedException {
        Thread.sleep(10 * 1000L); // sleep 10 秒
        return "你好,"+name;
    }
}
